package jp.co.technotree.service;

import javax.servlet.ServletContext;

import jp.co.technotree.common.controll.ApplicationContext;
import jp.co.technotree.common.dao.Transaction;
import jp.co.technotree.common.dao.TransactionManager;
import jp.co.technotree.exception.TransactionException;

public class OrderReceiveService {

	public ServletContext application;
	
	
	public String test(){
		
		//共通項目---------START
		String path = application.getRealPath("/");
		ApplicationContext.init(path);
		//共通項目---------END
		
		
		Transaction trx = null;
		try {
			trx = TransactionManager.getTransaction();
			trx.begin();
			
			
			
			
			
			trx.commit();
			
		} catch (TransactionException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
		
		System.out.println("---bbb-----");
		return "test";
	}

}

